import os
path = './Webcam_Pictures'
i = 0
for file in os.listdir(path):
    print(file.split('.')[0])
    os.rename(os.path.join(path,file),os.path.join(path, str(i) + ".jpg"))
    i = i+1
